home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Electronic Library of Art: Renaissance Masters
/
Electronic Library of Art - Renaissance Masters I (EBook)(ELARM1-92)(1992).ISO
/
essay
/
makefile
< prev
next >
Wrap
Makefile
|
1991-05-01
|
3KB
|
131 lines
#############################################################################
#
# MAKEFILE
#
#############################################################################
#
# Program Description: Generic Makefile for Viewer Data files
#
#############################################################################
#
# The following are the optionally passed variables:
#
# STOPF = Contains an alternate stop word file.
# FIELDF = Contains an alternate field definition file.
# IND_ONLY = IND_ONLY=Y will not rebuild the MVB file, force build .ind.
#############################################################################
!IFNDEF NAME
!ERROR -- Viewer "NAME" macro undefined
!endif
#
!IFNDEF CHECK_DATA
GOAL_MVB =MVB_GOAL
!else
#if check_data flag is set, it will check Name.MVB entry for dependencies
# eg: for .rtf, .bmp and other changes.
GOAL_MVB =$(NAME).MVB
!endif
!IFNDEF STOPF
STOPF =$(NAME)
!endif
!IFNDEF FIELDF
FIELDF =$(NAME)
!endif
# This will allow optional skipping of the first step-
# (compile the Viewer file). It does this by preventing the 2nd
# step from checking if the Viewer file needs to be rebuilt.
#
!IFNDEF IND_ONLY
WIN_FS =$(GOAL_MVB)
CLEAN_IND=
!else
CLEAN_IND=DEL_ZOF
WIN_FS =
!endif
# Multivolume titles-- Bookshelf type titles- this option selected
# w/ builddoc /m parameter does BOTH /i command function as well
# as build using a .MLT file. (used by both forage and w_scan).
!IFNDEF MULTIVOL
MLTFILE=
FOPTS= /w $(NAME).MVB
!else
MLTFILE=$(NAME).mlt
FOPTS= /m $(NAME).mlt
WIN_FS =
!endif
goal: $(NAME).ind $(CLEAN_IND)
clean:
-del $(NAME).wrs
-del $(NAME).lst
-del $(NAME).oca
-del $(NAME).zon
-del $(NAME).zos
-del $(NAME).cfg
-del $(NAME).MVB
-del $(NAME).ans
-del $(NAME).ind
#Following for those using CHECK_DATA option only:
$(NAME).MVB: \
# place your data files list here: following example for tarot,
# but no need to change unless you use check_data flag.
.\macrotxt\demoapp2.RTF \
# for execution, it falls thru to following goal:
#following for special font option- ignore.
$(NAME).lgh: $(NAME).tbl
masm $(NAME).tbl,$(NAME).lg2;
link $(NAME).lg2,$(NAME).lg3,NUL,,NUL
@echo .
@echo ....Ignore warning - No stack segment
@echo ....Ignore warning - Program has no start address
@echo .
exe2bin $(NAME).lg3,$(NAME).lgh
del $(NAME).lg2
del $(NAME).lg3
$(GOAL_MVB): $(NAME).mvp
mvc $(NAME).mvp
@echo .
@echo .
DEL_ZOF:
@-del $(NAME).zof
$(NAME).zof: $(WIN_FS)
forage $(FOPTS)
@echo .
@echo .
#create a marker file so we can delete large .ans file and still
# have good restartability.
@echo > $(NAME).zof
#$(NAME).oca: $(NAME).zof $(NAME).lgh
$(NAME).oca: $(NAME).zof
# w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst,longhorn;
w_scan $(NAME).ans,,$(STOPF).stp,$(FIELDF).fld,$(MLTFILE),$(NAME).lst;
@-del $(NAME).ans
@echo .
@echo .
$(NAME).ind: $(NAME).oca
# index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map,longhorn;
index $(NAME),,$(NAME),$(STOPF).stp,$(FIELDF).fld,$(NAME).map;
@-del $(NAME).wrs
@-del $(NAME).zon
@-del $(NAME).zos
@-del $(NAME).cfg
@-del $(NAME).map